package cn.ad.entity;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;

/**
 * 素材
 * 
 * @author dongbin.yu
 */
@Alias("adMaterial")
public class AdMaterial extends PO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7006980481504886993L;

	/**
	 * 创意标识.对应creative.id
	 */
	private Integer creativeId;

	/**
	 * 针对视频素材的播放时长, 单位秒
	 */
	private Integer duration;

	/**
	 * 素材枚举类型 0 视频 1 文本 2 图片
	 */
	private Integer materialTypeId;

	/**
	 * 素材格式枚举类型 1-jpg 2-png 3-gif 4-text 5-mp4 6-flv
	 */
	private Integer materialFormat;

	/**
	 * 素材URL访问地址, 此地址会存在绝对地址和相对地址, 系统应根据实际情况匹配正确的URL地址输出
	 */
	private String materialUrl;

	/**
	 * 用于原生广告的文本内容
	 */
	private String materialText;

	/**
	 * 素材大小尺寸, 描述素材的宽高, 对应ad_size.id
	 */
	private Integer sizeId;

	/**
	 * 描述素材状态 -1 删除 0 初始 1 有效 初始默认为1
	 */
	private Integer status;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 更新时间
	 */
	private Date updateTime;

	public Integer getCreativeId() {
		return creativeId;
	}

	public void setCreativeId(Integer creativeId) {
		this.creativeId = creativeId;
	}

	public Integer getDuration() {
		return duration;
	}

	public void setDuration(Integer duration) {
		this.duration = duration;
	}

	public Integer getMaterialTypeId() {
		return materialTypeId;
	}

	public void setMaterialTypeId(Integer materialTypeId) {
		this.materialTypeId = materialTypeId;
	}

	public Integer getMaterialFormat() {
		return materialFormat;
	}

	public void setMaterialFormat(Integer materialFormat) {
		this.materialFormat = materialFormat;
	}

	public String getMaterialUrl() {
		return materialUrl;
	}

	public void setMaterialUrl(String materialUrl) {
		this.materialUrl = materialUrl;
	}

	public String getMaterialText() {
		return materialText;
	}

	public void setMaterialText(String materialText) {
		this.materialText = materialText;
	}

	public Integer getSizeId() {
		return sizeId;
	}

	public void setSizeId(Integer sizeId) {
		this.sizeId = sizeId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
